package com.yuba.front.domain;

import com.yuba.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 文章评论对象 comment_posts
 *
 * @author modakai
 * @date 2024-12-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("comment_posts")
public class CommentPosts extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 对象存储主键
     */
    @TableId(value = "comment_id", type = IdType.AUTO)
    private Long commentId;

    /**
     * 帖子id
     */
    private Long postsId;

    /**
     * 评论用户id
     */
    private Long userId;

    /**
     * 父级评论id
     */
    private Long parentId;

    /**
     * 评论目标用户id;
     */
    private Long replyUserId;

    /**
     * 内容
     */
    private String content;

    /**
     * 是否置顶
     */
    private String topFlag;

    /**
     * 点赞数
     */
    private Long likeCount;

    /**
     * 备注
     */
    private String remark;


}
